<!DOCTYPE html>
<html lang="en" xmlns:th=http://www.thymeleaf.org>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet"  href="/static/layui/css/layui.css"  media="all">
    <script type="text/javascript">

    </script>
</head>
<body>
<div id="app">

    <pre class="layui-code" lay-title="BPMN20.xml" lay-skin="notepad" id="bpmn">

    </pre>
</div>
</body>
<script src="/static/bootstrap/jquery/jquery-3.3.1.min.js"></script>
<!--<script th:src="@{/elementui/js/vue.js}"></script>-->
<script src="/static/layui/layui.js"></script>
<script src="/static/js/activiti.manager.core.util.js"></script>
<script>
    //获取token
    var token = CoreUtil.getData("access_token");
    //地址栏转义token中的#号
    var tokenQuery = token.replace("#", "%23");
    var layer;
    layui.use(['layer','code'], function() {
        layer = layui.layer; //独立版的layer无需执行这一句
        CoreUtil.sendGet("/models/getDeploymentIdBpmnXml/" + "[[${deploymentId}]]",{"resourceName":"[[${resourceName}]]","authorization":tokenQuery},function (res) {
                $("#bpmn").text(res.data);
                layui.code();
        })

                $(".layui-code-h3 a").remove();
    });
</script>
</html>